package cn.fanqinghong.ymcc.feignclient;

import cn.fanqinghong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * FAN
 * 2022/7/27  14:55
 */
@FeignClient(value = "service-media" , fallbackFactory = MediaFileFallbackFactory.class)
@RequestMapping("/mediaFile")
public interface MediaFileFeignClient {

    /**
     * 通过课程Id查询视频数据
     */
    @RequestMapping(value="/searchInfo/{chapterId}",method= RequestMethod.GET)
    JSONResult searchInfo(@PathVariable("chapterId") Long chapterId);
}
